/*
 *email: chen983@sina.com
 */
#ifndef _COMMAND_H__
#define _COMMAND_H__
#include "connection.h"
#include <string.h>
#include "reader.h"
using namespace std;

namespace Oracle{

class Command
{
public:
	Command(Connection &connection);
	~Command();

	void executeNonQuery(bool autoCommit=true);
	Reader *executeReader();
	Reader *prepareReader();
	
	void commit();
	void rollback();
	
	string commandText;
	
private:
	Connection &_connection;

	//unsigned int sqlctx;			
};

};

#endif
